import { TOKEN, CLEAR_TOKEN, TOGGLE_COLLAPSE,USERNAME } from "./mutation-types";

export default {
  [TOKEN](state, data) {
    state.token = data;
  },
  [CLEAR_TOKEN](state) {
    state.token = null;
  },
  [TOGGLE_COLLAPSE](state) {
    state.collapse = !state.collapse;
  },
  [USERNAME](state, username) {
    state.username = username;
  }
};
